package com.yauthor.module.plugin
{
	/**
	 * Assist test controller in loading/unloading pages
	 */
	public interface IPageLoadPlugin 
	{
		/**
		 * Called when current page is unloaded. May be used to remove 
		 * all references to object on this page
		 * @return true when plugin handled this call and further processing
		 * shoul be blocked, otherwise false.
		 */
		function unloadCurrentPage():Boolean;
		/**
		 * Called when current page should be loaded. Default implementation
		 * takes link to the page and calls load method on innerPage.
		 * @return true when plugin handler page load and there is nothing to
		 * do left for default implementation. When false default implementation
		 * (or other plugin) will be used
		 */ 
		function loadCurrentPage():Boolean;
	}
}